<?php
/**
 * Created by PhpStorm.
 * User: guokunsheng
 * Date: 2020/1/2
 * Time: 20:43
 */

namespace app\common\command;

use app\common\lib\astrolog\Calendar as CalendarLib;
use think\console\Command;
use think\console\Input;
use think\console\Output;

/**
 * Class AstroChange
 * @package app\common\command
 */
class AstroChange extends Command
{
    /**
     * 命令配置
     */
    protected function configure()
    {
        $this->setName('astro:change')->setDescription('生成天象变化数据入库');
    }

    protected function execute(Input $input, Output $output)
    {
        $Calendar = new CalendarLib();
        ini_set('memory_limit', '4096M');
        set_time_limit(0);
        $Calendar->get(1900, 1, 1);
    }
}
